﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using CommonFactory;

namespace CharacterSystem
{
    public class CharacterSystemFacade:Singleton<CharacterSystemFacade>,IInitable,ICharacterManager
    {
        #region 管理器

        ICharacterManager characterManager = new CharacterManager();

        public void Init()
        {
            characterManager.Init();
        }

        public void RegisterSpawn(ICharacterSpawn spawn)
        {
            characterManager.RegisterSpawn(spawn);
        }

        public void RemoveSpawn(ICharacterSpawn spawn)
        {
            characterManager.RemoveSpawn(spawn);
        }

        public ICommonProductData GetCharacterDataByID(int id)
        {
            return characterManager.GetCharacterDataByID(id);
        }

        #endregion
    }
}